(*
 *      Copyright (C) 2013 Kangreon
 *      http://kdcodes.blogspot.com/
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 *)

unit VersionInfo;

interface

uses
  SysUtils;

type
  TVerisonInfo = class
    class function AppName: string;
    class function Build: Integer;
    class function Caption: string;
    class function CaptionEx: string;
    class function Date: string;
    class function Major: Integer;
    class function Minor: Integer;
    class function Version: string;
  end;

implementation

{ TVerisonInfo }

class function TVerisonInfo.AppName: string;
begin
  Result := 'Serials Note';
end;

class function TVerisonInfo.Build: Integer;
begin
  Result := 2;
end;

class function TVerisonInfo.Caption: string;
begin
  Result := AppName + ' ' + Version;
end;

class function TVerisonInfo.CaptionEx: string;
begin
  Result := Caption + ' by Kangreon';
end;

class function TVerisonInfo.Date: string;
begin
  Result := '02.05.2013';
end;

class function TVerisonInfo.Major: Integer;
begin
  Result := 1;
end;

class function TVerisonInfo.Minor: Integer;
begin
  Result := 0;
end;

class function TVerisonInfo.Version: string;
begin
  Result := Format('%d.%d.%d', [Major, Minor, Build]);
end;

end.
